﻿using System.Collections.Generic;

namespace SalePromotion.Pagination
{
    public interface IPagedList
    {
        IEnumerable<int> Pages { get; }
        int ItemsPerPage { get; }
        int CurrentPage { get; }
        int PreviousPage { get; }
        int NextPage { get; }
        bool IsFirstPage { get; }
        bool IsLastPage { get; }
        long TotalItems { get; }
        int TotalPages { get; }
    }

    public interface IPagedList<out T> : IPagedList, IEnumerable<T>
    {
        IEnumerable<T> Items { get; }
    }
}